package com.sheepone.util.business;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Miss.杨
 * @description
 * @since 2024/4/17 - 8:17
 */
public class GraphInfo<T> {
    /**
     * 图形id
     */
    String graphId;
    /**
     * 图形名称
     */
    String graphName;
    List<CurveInfo<T>> curves = new ArrayList<>();

    public GraphInfo(String graphId, String graphName) {
        this.graphId = graphId;
        this.graphName = graphName;
    }

    public void addCurve(CurveInfo<T> curve) {
        curves.add(curve);
    }

    public void addCurves(List<CurveInfo<T>> curves) {
        this.curves = curves;
    }

    public String getGraphId() {
        return graphId;
    }

    public void setGraphId(String graphId) {
        this.graphId = graphId;
    }

    public String getGraphName() {
        return graphName;
    }

    public void setGraphName(String graphName) {
        this.graphName = graphName;
    }
}
